package com.qms.repast.ui.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

/**
 * @author 泅渡者
 * @date 2018/9/3 0003
 * @describe:
 */
public class TabFragmentPagerAdapter extends FragmentPagerAdapter {

	private List<Fragment> mlist;

	public TabFragmentPagerAdapter (FragmentManager fm, List<Fragment> list) {
		super(fm);
		this.mlist = list;
	}

	@Override
	public Fragment getItem (int arg0) {
		return mlist.get(arg0);
	}

	@Override
	public int getCount () {
		return mlist.size();
	}
}